package com.mk.log.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.mk.base.mapper.BaseMapper;
import com.mk.log.bean.Log;
import com.mk.log.bean.LogRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 11:58 AM 3/13/18
 */
@Repository
@Mapper
public interface LogMapper extends BaseMapper<Log> {

    /**
     * 查询分页
     * @param request
     * @param page
     * @return
     */
    List<Log> getPage(@Param("req")LogRequest request, Pagination page);

    List<Log> findByCols(@Param("req") LogRequest request,@Param("isDeleted") Integer able);
}
